package com.yjj.demo.common.exception;

import lombok.Getter;

/**
 * 不打印堆栈日志
 *
 * @author yangjiajia
 * @createdAt 2023/1/19 18:10
 */
@Getter
public class NoStackException extends RuntimeException {

    private int code = -1;

    public NoStackException(String msg) {
        super(msg, null, false, false);
    }

    public NoStackException(int code, String msg) {
        super(msg, null, false, false);
        this.code = code;
    }
}
